<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
    <div class="container">
        <form action="/doEdit" method="POST" role="form" name="myfrom">
            <legend>编辑页面</legend>
            <input type="hidden" name="_id" value="{{data._id}}">
            <div class="form-group">
                <!-- name方便后端去获取数据 -->
                <label for="user">用户名:name</label>
                <input type="text" name="name" class="form-control" id="user" value="{{data.name}}" placeholder="请输入用户名name">
            </div>
            <div class="form-group">
                <label for="age">年龄:age</label>
                <input type="text" name="age" class="form-control" id="age" value="{{data.age}}" placeholder="请输入年龄age">
            </div>
            <button type="submit" class="btn btn-primary">编辑</button>
        </form>
    </div>
</body>
</html>